<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="requestInterFace.Handle.userHandle"%>
<%@ page import="xml.response.*"%>
<%@ page import="xml.root"%>
<%@ page import="util.print.printLogCat"%>
<%@ page import="requestInterFace.UserInfoInterFace.*"%>
<%@ page import="org.sql.table.*"%>
<%@ page import="xml.var"%>
<%@ page trimDirectiveWhitespaces="true" %> 
<%
String system = request.getParameter("system");//kjava android
String ver = request.getParameter("ver");
String kjavaDownload="www.fs1982.com";
String nowKjavaVar="1.0";
String NowAndroidVar="1.0";
String androidDownload="www.fs1982.com";	
root root=new root();
response res=new response();
if((system!=null&&!system.equals(""))&&(ver!=null&&!ver.equals(""))){
        if(system.equals("kjava")){
		     if(ver.equals(nowKjavaVar)){
			 root.setStatus("false");
		     root.setMsg("已是最新版本");
			 }else{
			 root.setStatus("true");
		     root.setMsg("有最新版本");
			 res.put("var",var.create().setName("var").setValue(""+kjavaDownload));
			 }
		
		}else if(system.equals("android")){
			 if(ver.equals(NowAndroidVar)){
			 root.setStatus("false");
		     root.setMsg("已是最新版本");
			 }else{
			 root.setStatus("true");
		     root.setMsg("有最新版本");
			 res.put("var",var.create().setName("var").setValue(""+androidDownload));
			 }
		}else{
		      root.setStatus("false");
		      root.setMsg("没有指定机型");
		}
		
		}else{
		 root.setStatus("false");
		 root.setMsg("请输入正确参数");
		}
		SystemInfo1_1 sys=new SystemInfo1_1();
		sys.addequwhile("Type", "=", "set");
		sys.addequwhile("Title", "=", "notice");
		sys.Select();
		res.put("notice",var.create().setName("notice").setValue(sys.getFieldsStr("Msg")));
		root.addResponse(res);
		String rep=root.getXmlString();
%>
<%=rep%>

